﻿@model CarouselListModel
@using Nop.Plugin.Widgets.Carousel.Models;
@using Nop.Core;
@using Nop.Core.Infrastructure;
@using Nop.Web.Framework.UI;

@{
    var supportRtl = EngineContext.Current.Resolve<IWorkContext>().WorkingLanguage.Rtl;
    Html.AddScriptParts("~/Plugins/Widgets.Carousel/Content/responsiveCarousel.js");
    Html.AddCssFileParts("~/Plugins/Widgets.Carousel/Content/responsiveCarousel.css");
    Html.AddCssFileParts("~/Plugins/Widgets.Carousel/Content/CustomCSS.css");
    Html.AddScriptParts("~/Plugins/Widgets.Carousel/Content/public.hz.js");
    if (supportRtl)
    {
        Html.AddCssFileParts("~/Plugins/Widgets.Carousel/Content/responsiveCarousel.rtl.css");
    }
    var zoneId = ViewBag.widgetZone + "-carousel";
}


<div id="@zoneId" style="min-height:100px;">
    <div id="@(zoneId)-please-wait" class="please-wait-small" style="display:none;"> @T("Windalert.Common.Pleasewait")</div>
</div>
<script type="text/javascript">
    AjaxLoaderPlugin.init("@zoneId", "@(Url.Action("Carousels", "WidgetsCarousel"))", "@ViewBag.widgetZone", "");
    AjaxLoaderPlugin.action();
</script>






